#Makefile

all: debug

lattice-d2q9glut.x: main.cpp Lattice.o Cell.o
	g++ main.cpp Lattice.o Cell.o -std=c++0x -lGL -lGLU -lglut -o lattice-d2q9glut.x

Lattice.o: Lattice.cpp Lattice.h Cell.cpp Cell.h
	g++ -c Lattice.cpp -std=c++0x

Cell.o: Cell.cpp Cell.h
	g++ -c Cell.cpp -std=c++0x

clean:
	rm -f Lattice.o Cell.o lattice-d2q9glut.x debug-d2q9glut.x

debug: main.cpp Lattice.cpp Lattice.h Cell.cpp Cell.h
	g++ -c Lattice.cpp -g
	g++ main.cpp Lattice.o -lGL -lGLU -lglut -o debug-d2q9glut.x
